package com.eight.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author 郭坤
 * @since 2023-02-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="tbCar", description="车辆信息表")
@TableName(value = "tb_car")
@Accessors(chain = true)
public class TbCar implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @TableField(value = "id")
    private Integer id;

    @ApiModelProperty(value = "车辆名称")
    @TableField("carName")
    private String carName;

    @ApiModelProperty(value = "类型")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "品牌标识")
    @TableField("brand_id")
    private Integer brandId;

    @ApiModelProperty(value = "配置编号")
    @TableField("config_id")
    private Integer configId;

    @ApiModelProperty(value = "简介")
    @TableField("intro")
    private String intro;

    @ApiModelProperty(value = "车辆识别码")
    @TableField("vin")
    private String vin;

    @ApiModelProperty(value = "购买价格")
    @TableField("buy_price")
    private Double buyPrice;

    @ApiModelProperty(value = "门店编号")
    @TableField("shop_id")
    private Integer shopId;

    @ApiModelProperty(value = "车辆状态(可租1，维修中2，租出3，删除4)")
    @TableField("state")
    private Integer state;

    @ApiModelProperty(value = "价钱")
    @TableField("price")
    private Double price;
    @ApiModelProperty(value = "价钱")
    @TableField("cover_img")
    private String coverImg;

//    @ApiModelProperty(value = "车辆照片")
//    @TableField("cover_img")
//    private String coverImg;

    @TableField(exist = false)
    private TbCarType tcttype;

    @TableField(exist = false)
    private TbBrand tbBrand;

    @TableField(exist = false)
    private TbShop tbShop;

    @TableField(exist = false)
    private TbCarTypeConfigDetails tbCarTypeConfigDetails;

}